<div class="fui-avatar-container">
  <svg class="fui-avatar-icon" [fuiIcon]="icon" color="secondary" *ngIf="displayMode === 'icon'"></svg>
  <img [src]="src" (error)="imgError($event)" *ngIf="displayMode === 'img'"/>
  <span class="fui-avatar-string" #textEl [ngStyle]="textStyles" *ngIf="displayMode === 'text'">{{text}}</span>
</div>
